package viz.controller.prep
{
	import org.puremvc.as3.multicore.interfaces.INotification;
	import org.puremvc.as3.multicore.interfaces.IProxy;
	import org.puremvc.as3.multicore.patterns.command.SimpleCommand;
	
	import uk.co.revisual.pivot.proxies.PivotProxy;
	
	import viz.view.mediators.FSMModuleMediator;

	public class PopulatePivotCmd extends SimpleCommand
	{
		override public function execute(note:INotification):void{
			var module:FSMModuleMediator = FSMModuleMediator( facade.retrieveMediator( FSMModuleMediator.NAME ) ),
				pivotProxy:IProxy = IProxy( facade.retrieveProxy( PivotProxy.NAME ) );			
			pivotProxy.setData(  module.pivot  );
		}
		
	}
}